using System;
using System.Text;
using System.Collections.Generic;

namespace Demo_G.O.S.E.ServerEngine.AIEngine.Agent
{

/**
 * A special ObjectInputStream that will use the DaemonClassLoader for
 * resolution.
 */
    class DaemonObjectInputStream /*: ObjectInputStream */
    {

        /**
         * Constructs an DaemonObjectInpustStream for the given InputStream.
         *
         * @param in The InputStream to pull data from.
         */
        //DaemonObjectInputStream( InputStream inv )
        //{
        //    //super(in);
        //}

        /**
         * Attempts to resolve the class.
         *
         * @param v The ObjectStreamClass that contains the class reference.
         */
        //protected Class resolveClass(ObjectStreamClass v)
        //throws ClassNotFoundException {
        //boolean debug = true;
        //return Class.forName(v.getName(), true,
        //             DaemonClassLoader.instance);
        //}

        /**
         * Attempts to resolve a proxy class.
         *
         * @param interfaces The list of interface names that were deserialized in
         *                   the proxy class descriptor.
         */
        /*
        protected Class resolveProxyClass(String[] interfaces)
        throws IOException, ClassNotFoundException {
        System.out.println("???????? Resolving proxy class .. interfaces: " +
                   interfaces);
        Class[] classObjs = new Class[interfaces.length];
        for (int i = 0; i < interfaces.length; i++) {
            classObjs[i] = Class.forName(interfaces[i], false,
                         DaemonClassLoader.instance);
        }
        try {
            return Proxy.getProxyClass(DaemonClassLoader.instance, classObjs);
        } catch (IllegalArgumentException e) {
            throw new ClassNotFoundException(null, e);
        }
        }
        */
    }
}
